﻿using System.Text;

namespace Graph;

public class MyList<T> : List<T>
{
    public override string ToString()
    {
        StringBuilder res = new StringBuilder();

        res.Append('[');
        for (int i = 0; i < Count; i++)
        {
            res.Append(this[i]);

            if (i != Count - 1)
                res.Append(", ");
        }
        res.Append(']');

        return res.ToString();
    }
}
